/*
 * @Author: 蔡继周
 * @Date: 2021-11-12 09:08:25
 * @LastEditTime: 2021-11-19 15:06:59
 * @LastEditors: Please set LastEditors
 * @Description: 环境配置封装
 * @FilePath: \blogAdmin\src\config\index.js
 */
const env =
    import.meta.env.MODE || 'prod';
const EnvConfig = {
    development: {
        baseApi: '/api',
        mockApi: 'https://www.fastmock.site/mock/339eae2aa34f1cb9bb014792ea042b5e/blog'
    },
    test: {
        baseApi: '//test.futurefe.com/api',
        mockApi: 'https://www.fastmock.site/mock/339eae2aa34f1cb9bb014792ea042b5e/blog'
    },
    prod: {
        baseApi: '//futurefe.com/api',
        mockApi: 'https://www.fastmock.site/mock/339eae2aa34f1cb9bb014792ea042b5e/blog'
    }
}

export default {
    env,
    mock: false,
    namespace: 'manager',
    ...EnvConfig[env]
}